<?xml version="1.0" encoding="utf-8"?>
<Content type="xform" name="EditContent">
  <model>
    <instance>
      <tblContent>
        <nContentKey/>
        <nContentPrimaryId/>
        <nVersion/>
        <cContentForiegnRef/>
        <cContentName/>
        <cContentSchemaName>Module</cContentSchemaName>
        <cContentXmlBrief>
          <Content position="" moduleType="FacebookLikeBox" box="" title="">
            <href>http://www.facebook.com/platform</href>
            <appId>176558699067891</appId>
            <width>292</width>
            <height>400</height>
            <color_scheme>light</color_scheme>
            <show_faces>true</show_faces>
            <stream>true</stream>
            <header>false</header>
            <border_colour>#ffffff</border_colour>
            <force_wall>true</force_wall>
          </Content>
        </cContentXmlBrief>
        <cContentXmlDetail/>
        <nAuditId/>
        <nAuditKey/>
        <dPublishDate/>
        <dExpireDate/>
        <dInsertDate/>
        <nInsertDirId/>
        <dUpdateDate/>
        <nUpdateDirId/>
        <nStatus>1</nStatus>
        <cDescription/>
        <bCascade/>
      </tblContent>
    </instance>
    <submission id="EditContent" action="" method="post" event="return form_check(this)"/>
    <bind id="cModuleTitle" nodeset="tblContent/cContentName" required="false()" type="string"/>
    <bind nodeset="tblContent/cContentXmlBrief/Content">
      <bind id="cPosition" nodeset="@position" required="true()" type="string"/>
      <bind id="cModuleType" nodeset="@moduleType" required="true()" type="string"/>
      <bind id="cModuleBox" nodeset="@box" required="false()" type="string"/>
      <bind id="nHeightInPixels" nodeset="height" required="true()" type="number"/>
      <bind id="nWidthInPixels" nodeset="width" required="true()" type="number"/>
      <bind id="cModuleTitle" nodeset="@title" required="false()" type="string"/>
      <bind id="cModuleTitleDisplay" nodeset="@displayTitle" required="false()" type="string"/>
      <bind id="cFacebookURL" nodeset="href" required="true()" type="string"/>
      <bind id="cAppId" nodeset="appId" required="true()" type="string"/>
      <bind id="cShowFaces" nodeset="show_faces" required="false()" type="string"/>
      <bind id="cShowStream" nodeset="stream" required="false()" type="string"/>
      <bind id="cShowHeader" nodeset="header" required="false()" type="string"/>
      <bind id="cForceWall" nodeset="force_wall" required="false()" type="string"/>
      <bind id="cColorScheme" nodeset="color_scheme" required="false()" type="string"/>
      <bind id="cColorBorder" nodeset="border_colour" required="false()" type="string"/>
    </bind>
    <ewInclude filePath="/ewcommon/xforms/content/module/genericModule.xml" xPath="descendant-or-self::bind[@nodeset='tblContent/cContentXmlBrief/Content']"/>
    <ewInclude filePath="/ewcommon/xforms/content/module/genericModule.xml" xPath="descendant-or-self::bind[@nodeset='tblContent']"/>
  </model>
  <group ref="EditContent" class="2col">
    <label>Facebook Like Box Module</label>
    <group>
      <group>
        <!-- These hidden fields and bindings are required for the component-->
        <input bind="nContentKey" class="hidden">
          <label>ContentId</label>
        </input>
        <input bind="cModuleType" class="hidden">
          <label>ModuleType</label>
        </input>
        <!-- end of hidden fields -->
        <ewInclude filePath="/ewcommon/xforms/content/module/genericModule.xml" xPath="descendant-or-self::group[@id='presentation']"/>
        <range bind="nHeightInPixels" start="70" end="600" step="1">
          <label>Height in Pixels</label>
        </range>
        <range bind="nWidthInPixels" start="70" end="600" step="1">
          <label>Width in Pixels</label>
        </range>
        <ewInclude filePath="/ewcommon/xforms/content/module/genericModule.xml" xPath="descendant-or-self::group[@id='publish']"/>
      </group>
    </group>
    <group class="inline">
      <label>Facebook Settings</label>
      <input bind="cModuleTitle">
        <label>Title</label>
      </input>
      <input bind="cFacebookURL" class="required">
        <label>Facebook Page URL</label>
      </input>
      <input bind="cAppId" class="required">
        <label>App ID</label>
      </input>
      <select bind="cShowFaces" appearance="full" class="required vshort">
        <label>Show Faces</label>
        <item>
          <label>Yes</label>
          <value>true</value>
        </item>
      </select>
      <select bind="cShowStream" appearance="full" class="required vshort">
        <label>Show Stream</label>
        <item>
          <label>Yes</label>
          <value>true</value>
        </item>
      </select>
      <select bind="cShowHeader" appearance="full" class="required vshort">
        <label>Show Header</label>
        <item>
          <label>Yes</label>
          <value>true</value>
        </item>
      </select>
      <select bind="cForceWall" appearance="full" class="required vshort">
        <label>ForceWall</label>
        <item>
          <label>Yes</label>
          <value>true</value>
        </item>
      </select>
    </group>
    <group class="inline col-md-8">
      <label>Appearance Colors</label>
      <select1 bind="cColorScheme" appearance="full" class="required vshort">
        <label>Colour Scheme</label>
        <item>
          <label>Light</label>
          <value>light</value>>
        </item>
        <item>
          <label>Dark</label>
          <value>dark</value>
        </item>
      </select1>
      <input bind="cColorBorder" class="colorPicker">
        <label>Border Colour</label>
      </input>
    </group>
  </group>
  <group ref="submit" class="contentSubmit">
    <submit submission="" ref="ewSubmit" class="principle">
      <label>Save Facebook Like Box</label>
    </submit>
  </group>
</Content>
